home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / ToggleBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.6 KB  |  111 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: ToggleBP.h,v $ $Revision: 1.10 $ $Date: 92/05/14 13:00:06 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. /********************************************
  11.  *
  12.  *   No new fields need to be defined
  13.  *   for the Toggle widget class record
  14.  *
  15.  ********************************************/
  16.  
  17. #ifndef _XmToggleButtonP_h
  18. #define _XmToggleButtonP_h
  19.  
  20. #include <Xm/ToggleB.h>
  21. #include <Xm/LabelP.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. typedef struct _XmToggleButtonClassPart
  28.  {
  29.    int foo; /* No new fields needed */
  30.  } XmToggleButtonClassPart;
  31.  
  32.  
  33. /****************************************************
  34.  *
  35.  * Full class record declaration for Toggle class
  36.  *
  37.  ****************************************************/
  38. typedef struct _XmToggleButtonClassRec {
  39.     CoreClassPart          core_class;
  40.     XmPrimitiveClassPart      primitive_class;
  41.     XmLabelClassPart          label_class;
  42.     XmToggleButtonClassPart    toggle_class;
  43. } XmToggleButtonClassRec;
  44.  
  45.  
  46. externalref XmToggleButtonClassRec xmToggleButtonClassRec;
  47.  
  48.  
  49. /********************************************
  50.  *
  51.  * No new fields needed for instance record
  52.  *
  53.  ********************************************/
  54.  
  55. typedef struct _XmToggleButtonPart
  56.    unsigned char    ind_type;
  57.    Boolean        visible;
  58.    Dimension        spacing;
  59.    Dimension        indicator_dim;
  60.    Boolean        indicator_set;
  61.    Pixmap        on_pixmap; 
  62.    Pixmap        insen_pixmap; 
  63.    Boolean        set;
  64.    Boolean             visual_set; /* used for visuals and does not reflect
  65.                                         the true state of the button */
  66.    Boolean        ind_on;
  67.    Boolean        fill_on_select;
  68.    Pixel        select_color;
  69.    GC            select_GC;
  70.    GC            background_gc;
  71.    XtCallbackList     value_changed_CB,
  72.                         arm_CB,
  73.                         disarm_CB;
  74.    Boolean          Armed;
  75. } XmToggleButtonPart;
  76.  
  77.  
  78.  
  79. /****************************************************************
  80.  *
  81.  * Full instance record declaration
  82.  *
  83.  ****************************************************************/
  84.  
  85. typedef struct _XmToggleButtonRec {
  86.     CorePart            core;
  87.     XmPrimitivePart     primitive;
  88.     XmLabelPart        label;
  89.     XmToggleButtonPart  toggle;
  90. } XmToggleButtonRec;
  91.  
  92.  
  93. /********    Private Function Declarations    ********/
  94. #ifdef _NO_PROTO
  95.  
  96.  
  97. #else
  98.  
  99.  
  100. #endif /* _NO_PROTO */
  101. /********    End Private Function Declarations    ********/
  102.  
  103.  
  104. #ifdef __cplusplus
  105. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  106. #endif
  107.  
  108. #endif /* _XmToggleButtonP_h */
  109. /* DON'T ADD ANYTHING AFTER THIS #endif */
  110.